Advertisements for applications on an online social network

ABSTRACT

In one embodiment, a social-networking system accesses a social graph, receives a request to access a resource of the social graph, generates an advertisement of a third-party application based on the relevance of the third-party application to the user, wherein the relevance of the third-party application is based on social-graph information associated with the user and the third-party application, and sends the advertisement of the third-party application to the client device of the user for display.

PRIORITY

This application is a continuation under 35 U.S.C. §120 of U.S. patentapplication Ser. No. 14/296,022, filed 4 Jun. 2014, which is acontinuation under 35 U.S.C. §120 of U.S. patent application Ser. No.13/328,958, filed 16 Dec. 2011, which is incorporated herein byreference.

TECHNICAL FIELD

This disclosure generally relates to social graphs.

BACKGROUND

A social-networking system, such as a social-networking website, enablesits users to interact with it and with each other through the system.The social-networking system may create and store a record, oftenreferred to as a user profile, in connection with the user. The userprofile may include a user's demographic information, communicationchannel information, and personal interests. The social-networkingsystem may also create and store a record of a user's relationship withother users in the social-networking system (e.g., social graph), aswell as provide services (e.g., wall-posts, photo-sharing, eventorganization, messaging, games, or advertisements) to facilitate socialinteraction between users in the social-networking system. Thesocial-networking system may transmit contents and messages related toits services to a user's client device over a network.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates an example network environment of an examplesocial-networking system.

FIG. 2 illustrates an example social graph.

FIGS. 3A-3B illustrate example webpages associated with concept nodes.

FIG. 4 illustrates example advertisements.

FIG. 5 illustrates an example method.

FIG. 6 illustrates an example computer system.

FIG. 7 illustrates an example network environment.

DESCRIPTION OF EXAMPLE EMBODIMENTS

FIG. 1 illustrates an example network environment of an examplesocial-networking system. In particular embodiments, a social-networkingsystem may comprise one or more data stores 101. As an example and notby way of limitation, the social-networking system may storeuser-profile data and social-graph information in data stores 101. Inparticular embodiments, each data store 101 may comprise one or morestorage devices. In particular embodiments, the social-networking systemmay comprise one or more computing devices (such as, for example,servers) hosting functionality directed to operation of thesocial-networking system. In particular embodiments, one or more of datastores 101 may be operably connected to the social-networking system'sfront end 120. As an example and not by way of limitation, front end 120may be implemented in software programs hosted by one or more computingdevices of the social-networking system. A user of the social-networkingsystem may access the social-networking system using client device 122.In particular embodiments, front end 120 may interact with client device122 through network cloud 121. Network cloud 121 may represent a networkor collection of networks (such as the Internet, a corporate intranet, avirtual private network, a local area network, a wireless local areanetwork, a cellular network, a wide area network, a metropolitan areanetwork, or a combination of two or more such networks) over whichclient devices 122 may access the social network system. In particularembodiments, client device 122 may be a computer or computing deviceincluding functionality for communicating (e.g., remotely) over acomputer network. As an example and not by way of limitation, clientdevice 122 may be a desktop computer, laptop computer, personal digitalassistant (PDA), in- or out-of-car navigation system, smart phone orother cellular or mobile phone, mobile gaming device, another suitablecomputing device, or two or more such computing devices. In particularembodiments, client device 122 may execute one or more clientapplications, such as a web browser (e.g., MICROSOFT WINDOWS INTERNETEXPLORER, MOZILLA FIREFOX, APPLE SAFARI, GOOGLE CHROME, and OPERA, etc.)or special-purpose client application (e.g., Facebook for iPhone, etc.),to access and view content over a computer network. In particularembodiments, front end 120 may include web or HTTP server functionality,as well as other functionality, to allow users to access thesocial-networking system.

In particular embodiments, users of a social-networking system mayaccess other websites or third-party websites (e.g.,http://www.espn.com, http://www.youtube.com). As an example and not byway of limitation, a user using client device 122 may connect to andcommunicate with third-party website 130 through network cloud 121.Third-party website 130 may comprise web server 131 operativelyconnected to one or more data stores 132 storing user data and webpageinformation. User data may include, for example, user name, user profilepicture, and user profile information (e.g., location, affiliation,interest). Webpage information may include, for example, page-layoutinformation, scripts, webpage content such as text (e.g., ASCII orHTML), media data (e.g., graphics, photos, video clips), and executablecode objects (e.g., a game executable within a browser window or frame).In particular embodiments, a user may use a web browser orspecial-purpose client application hosted on client device 122 to accesstheir party website 130 by sending an HTTP request to web server 131,causing web server 131 to access the one or more data stores 132 andconstruct one or more webpages or frames displayed in the web browser orthe special-purpose client application.

A social-networking system may communicate and access third-partywebsite 130, and vice versa, through network cloud 121. As an exampleand not by way of limitation, a webpage constructed by third-partywebsite 130 for a user of a social-networking system may containinformation from the social-networking system, such as a framedisplaying profile pictures of the user's first-degree friends who arecurrently active on third-party website 130. As an example and not byway of limitation, a user's user-profile page of a social-networkingsystem may contain an embedded video clip that the user posted onthird-party website 130. In particular embodiments, a webpageconstructed by a first website may include one or more inline referencesthat cause the client device 122 to access and display content from asecond website by incorporating in the webpage's HTML document UniformResource Locations (URLs) and/or script code (e.g., JavaScript, PHP,AJAX) that causes a client application hosted on the client device 122to access the second website to dynamically provide content specified bythe script code (e.g., profile pictures). In particular embodiments, abrowser cookie installed by a second website on client device 122 may beused to facilitate accessing the second website. As an example and notby way of limitation, requests transmitted to the social-networkingsystem for a particular user may include a browser cookie or other tokento enable authentication and access to the social-networking system forthe particular user (such as, for example, to access and display profilepictures of the particular user's first-degree friends), without theparticular user having to manually enter user identification (ID) andpassword information of the social-networking system.

A social-networking system may store records of users and relationshipsbetween users in one or more social graphs. FIG. 2 illustrates anexample social graph 200. In particular embodiments, thesocial-networking system may store social graph 200 in data stores 101.In particular embodiments, social graph 200 may comprise a plurality ofuser nodes 201, a plurality of concept nodes 202, and a plurality ofedges 203 between nodes.

In particular embodiments, each user node 201 may correspond to a userof the social-networking system. As an example and not by way oflimitation, when a user registers for an account with thesocial-networking system, the social-networking system may create a usernode 201 corresponding to the user, and store the user node 201 in oneor more data stores 101. In particular embodiments, the user node 201may comprise information provided by the user and information gatheredby various systems, including the social-networking system. As anexample and not by way of limitation, the user may provide his name,profile picture, contact information, birth date, gender, maritalstatus, family status, employment, education background, preferences,interests, or other demographical information to be included in the usernode 201. In particular embodiments, each user node 201 may comprise oneor more data objects corresponding to information associated with auser. In particular embodiments, each user node 201 may correspond toone or more webpages or one or more user profile pages. As an exampleand not by way of limitation, in response to a request including a useridentifier of a particular user, system front end 120 may access acorresponding user node based on the user identifier, and construct auser-profile page comprising a name, a profile picture, and interests ofthe particular user.

In particular embodiments, each concept node 202 may correspond to aconcept of the social-networking system. As an example and not by way oflimitation, a concept may correspond to a place (such as, for example, amovie theater, a restaurant, a landmark, or a city), a website (such as,for example, a website associated with the social-network system or athird-party website), an entity (such as, for example, a person, abusiness, a group, a sports team, or a celebrity), real or intellectualproperty (such as, for example, a sculpture, a painting, a movie, agame, a song, an idea, a photograph, or a written work), an application,a game, an idea or theory, another suitable concept, or two or more suchconcepts. An administrative user of a concept (such as, for example, theowner or administrator of the concept) may create a concept nodes byproviding information of the concept (e.g., by filling out an onlineform), causing the social-networking system to create a correspondingconcept node, and store the concept node in one or more of data stores101. A concept node 202 may comprise information of a concept providedby an administrative user of the concept and information gathered byvarious systems, including the social-networking system. As an exampleand not by way of limitation, information of a concept may include as aname or a title, one or more images (e.g., an image of cover page of abook), a location (e.g., an address, a geographical location), a website(e.g., an URL address), contact information (e.g., a phone number, anemail address), other suitable concept information, or any combinationof such information. In particular embodiments, each concept node 202may comprise one or more data objects corresponding to informationassociated with the concept node 202. In particular embodiments, eachconcept node 202 may correspond to a webpage. As an example and not byway of limitation, in response to a request including a name (or an URLaddress), the social-networking system may access a correspondingconcept node (stored in one or more of data stores 101) based on thename, and construct a webpage comprising the name, one or more images,and contact information of the concept.

In particular embodiments, an edge 203 connecting a pair of nodes mayrepresent a relationship between the pair of nodes. In particularembodiments, each edge 203 may comprise or represent one or more dataobjects or attributes corresponding to the relationship between a pairof nodes. As an example and not by way of limitation, a first user mayindicate that a second user is a “friend” of the first user. In responseto this indication, the social-networking system may transmit a “friendrequest” to the second user. If the second user confirms the “friendrequest,” the social-networking system may create an edge connecting thefirst user and the second user in social graph 200, and store the edgein one or more of data stores 101. In the example of FIG. 2, socialgraph 200 includes an edge indicating a friend relation between usernodes of user “A” and user “B”, and an edge indicating a friend relationbetween user nodes of user “C” and user “B.” Although this disclosuredescribes and FIG. 2 illustrates edges with particular attributesconnecting user nodes, this disclosure contemplates edges with anysuitable attributes connecting user nodes. As an example and not by wayof limitation, an edge may represent a friendship, a businessrelationship, a fan relationship, a follower relationship, a visitorrelationship, a subscriber relationship, a superior/subordinaterelationship, a reciprocal relationship, a non-reciprocal relationship,another suitable type of relationship, or two or more suchrelationships.

In particular embodiments, the social-networking system may create anedge between a user node and a concept node in social graph 200. As anexample and not by way of limitation, a user viewing the webpages 300(such as, for example, by using a web browser or a special-purposeapplication hosted by the user's client device 122) may indicate that helikes the concept represented by the concept node by selecting “Like”icon 301 (such as, for example, by clicking on the icon), which maycause client device 122 to transmit to the social-networking system amessage indicating the user's liking of the sports bar associated withthe webpage 300. In response to the message, the social-networkingsystem may create an edge between the user and the concept node, asillustrated by the “like” edge 203 between the user node of user “B” andthe concept node of sports bar “Old Pro” in FIG. 2. In particularembodiments, the social-networking system may store the edge in one ormore of data stores 101. Although this disclosure describes formingedges in a particular manner, this disclosure contemplates forming edgesin any suitable manner. As an example and not by way of limitation,rather than visiting webpage 300 and clicking an icon, a user may use amobile application or another suitable application that is operable toform an edge between the user's user node and a concept node. As anotherexample and not by way of limitation, an edge may be automaticallyformed by the social-networking system in response to particular useractions. For example, if a first user uploads a picture, watches amovie, or listens to a song, an edge may be formed between the user nodecorresponding to the first user and the concept nodes corresponding tothose concepts. Moreover, although this disclosure describes particulartypes of edges, this disclosure contemplates any suitable types ofedges, including but not limited to those representing anycharacterization by the user of the concept or vice versa, anyindication of a state of a relationship or association between the userand the concept, any information regarding an interaction between theuser and the concept, or any other representation of information relatedto both the user and the concept.

Social graph 200 may comprise other types of edges between a user nodeand a concept node. In particular embodiments, an edge between a usernode and a concept node may represent a particular action or activityperformed by a user of the user node toward a concept of the conceptnode. As an example and not by way of limitation, in addition to a user(user “B”) liking a sports bar (“Old Pro”), a user (user “B”) maycheck-in to a place (“Old Pro”), as illustrated in FIG. 2. The webpage300 corresponding to a concept node may include, for example, aselectable “check in” icon 302 or a selectable “add to favorites” icon303. Similarly, by clicking on these icons, the social-networking systemmay create a “favorite” edge or a “check in” edge (as illustrated inFIG. 2) in response to a user's action corresponding to a respectiveaction. As another example and not by way of limitation, a user (user“C”) may listen to a particular song (“Imagine”) using a particularapplication (SPOTIFY, which is an online music application). In thiscase, the social-networking system may create a “listened” edge and a“used” edge (as illustrated in FIG. 2) between the user nodescorresponding to the user and the concept nodes corresponding to thesong and application to indicate that the user listened to the song andused the application. Moreover, the social-networking system may createa “played” edge (again, as illustrated in FIG. 2) between the conceptnodes corresponding to the song and the application to indicate that theparticular song was played by the particular application. Although thisdisclosure describes edges with particular attributes connecting usernodes and concept nodes, this disclosure contemplates edges with anysuitable attributes connecting user nodes and concept nodes. Moreover,although this disclosure describes edges between a user node and aconcept node representing a single relationship, this disclosurecontemplates edges between a user node and a concept node representingone or more relationships. As an example and not by way of limitation,an edge may represent both that a user likes and has used at aparticular concept. Alternatively, a separate edge could be generated torepresent each type of relationship (or multiples of a singlerelationship) between a user node and a concept node, as illustrated inFIG. 2 between the user node for user “E” and the concept node for“SPOTIFY.”

In particular embodiments, a concept node may represent a third-partywebpage hosted by third party website 130. The third-party webpage mayinclude a selectable icon (e.g., implemented in JavaScript, AJAX, or PHPcodes) representing an action or activity. As an example and not by wayof limitation, a third-party webpage for the “Old Pro” about The Old ProSports Bar in Palo Alto, Calif., may include a selectable icon such as“like” or “check in,” like the webpage 300 illustrated in FIG. 3A, ormay include selectable icons such as, for example, “eat,” “recommend,”or any other suitable action or activity. A user viewing the third-partywebpage may perform an action by selecting one of the icons (e.g.,“eat”), causing client device 122 to transmit to the social-networkingsystem a message indicating the user's action (e.g., eating at “OldPro”). If a concept node corresponding to the third-party webpage existsin social graph 200, in response to the message, the social networkingsystem may create an edge (e.g., an “eat” edge) between a user nodecorresponding to the user and the concept node corresponding to thethird-party webpage, and store the edge in one or more of data store101. If a concept node corresponding to the third-party webpage does notexist in social graph 200, in response to the message, the socialnetworking system may create a concept node corresponding to thethird-party webpage, create an edge (e.g., an “eat” edge) between thenewly-created concept node and a user node corresponding to the user,and store the concept node and the edge in one or more of data stores101.

In particular embodiments, a particular concept may correspond to one ormore concept nodes 202. A social graph may comprise a plurality ofconcept nodes corresponding to a same concept (e.g., a same real-worldentity). That is, each concept node of the several concept nodes maycorrespond to a different webpage that is about the same concept. As anexample and not by way of limitation, a popular celebrity or restaurantmay have several webpages, such as, for example, a “fan page,” an“official page,” or a “review page,” authored by various users.

FIGS. 3A-3B illustrate example webpages associated with concept nodes.In particular embodiments, the social-networking system may construct awebpage corresponding to a concept node. As an example and not by way oflimitation, FIG. 3A illustrates a webpage 300 for the “Old Pro,” asports bar in Palo Alto, Calif. The webpage 300 may include, forexample, a selectable “Like” icon 301, a selectable “check in” icon 302,a selectable “add to favorites” icon 303, other suitable components, ortwo or more such components. As an example and not by way of limitation,FIG. 3B illustrates a webpage 310 for the picture of “Matthew.” Thewebpage 310 may include, for example, a selectable “Like” icon 311, aselectable “Comment” icon 312, a history of comments and “likes” fromvarious users in field 313, an indication of the applicationcorresponding to the concept node in field 314, other suitablecomponents, or two or more such components. Although this disclosuredescribes and FIGS. 3A-3B illustrate particular webpages associated withparticular concept nodes, this disclosure contemplates any suitablewebpages associated with any suitable concept nodes. Moreover, althoughthis disclosure describes concept nodes being associated with webpages,this disclosure contemplates concept nodes that are not necessarilyassociated with webpages. As an example and not by way of limitation, aconcept node may correspond to a song or other musical work that it notassociated with any particular webpage.

In particular embodiments, social graph 200 may be used to determinewhich concepts (corresponding to particular concept nodes) are relevantto particular users (corresponding to particular user nodes). Conceptnodes that are connected to a particular user node (i.e., directly by anedge) may be considered relevant to the user node. As an example and notby way of limitation, a concept node connected by an edge to a firstuser node may be considered relevant to the first user node. As usedherein, when referencing a social graph the term “connected” means apath exists within the social graph between two nodes, wherein the pathmay comprise one or more edges and zero or more intermediary nodes. Theterm “directly connected” means the path between two nodes in the socialgraph comprises a single edge. Similarly, the term “indirectlyconnected” means the path between two nodes in the social graphcomprises two or more edges and one or more intermediary nodes. Inparticular embodiments, concept nodes that are not connected to aparticular user node, but instead are indirectly connected via one ormore intervening nodes, may also be considered relevant to the usernode. As an example and not by way of limitation, a concept nodeindirectly connected to second user node (via a path comprising one ormore intervening nodes) may be considered relevant to a first user nodeif the second user node is an Nth-degree friend of the first user node.Furthermore, in particular embodiments, the closer a second user node isto the first user node, the more relevant the concept nodes connected tothe second node may be considered to the first user node. That is, thefewer edges separating the first user node from a particular conceptnode, the more relevant that concept node may be considered to the firstuser node. As an example and not by way of limitation, as illustrated inFIG. 2, the concept node “Old Pro” is connected to the user node forUser “B,” and thus the concept “Old Pro” may be considered relevant toUser “B.” As another example and not by way of limitation, the conceptnode “SPOTIFY” is indirectly connected to the user node for User “B” viathe intermediated user node for User “C,” and thus the concept “SPOTIFY”may be considered relevant to User “B,” but because the concept node isnot directly connected to the user node for User “B,” it may beconsidered less relevant than a concept node that is directly connectedto the user node for User “B.” As yet another example and not by way oflimitation, the concept node for “Online Poker” (which is an onlinemultiplayer game) is not connected to the user node for User “B” by anypathway in social graph 200, and thus the concept “Online Poker” may notbe considered relevant to User “B.” Although this disclosure describesdetermining whether particular concept nodes are relevant to particularuser nodes in a particular manner, this disclosure contemplatesdetermining whether any suitable concept nodes are relevant to anysuitable user nodes in any suitable manner.

In particular embodiments, the social-networking system may identify aset of concept nodes associated with an application (“app”) that isaccessible by users associated with the online social network andreference one or more of those concept nodes when generating anadvertisement for the application. Thus, an advertisement for aparticular application can be customized to a particular user byreferencing the user's social network and by referencing content relatedto the application that the user's friends have accessed. An applicationaccessible by users associated with the online social network mayinclude, for example, a website, an online service, an app foraccessing, creating, or managing content, an app for playing onlinegames (e.g., CHESSMASTER FOR BLACKBERRY, etc.), an app for accessing,creating, or managing content from a mobile client system (e.g.,FACEBOOK FOR IPHONE, etc.), an app for conducting search queries (e.g.,GOOGLE MOBILE app), an app for handling email or other digital messagingsystems, a web browser app, an app for viewing advertisements, anothersuitable app, or an app with any suitable combination of thesecapabilities. In particular embodiments, an application may beassociated with particular concept nodes. As an example and not by wayof limitation, an application may be able to access, create, or manageparticular types of content, such as audio files, video files,pictures/graphics, text, or any combination thereof. Each piece ofcontent that is accessed, created, or managed by an application may havea corresponding concept node. Thus, particular content may be associatedwith particular applications in the social graph. As an example and notby way of limitation, a video player application may correspond to afirst concept node, and one or more videos that can be accessed andviewed using the video player may correspond to one or more secondconcept nodes, respectively. As another example and not by way oflimitation, a camera application may correspond to a first concept node,and one or more photographs created with the camera application maycorrespond to one or more second concept nodes. Although this disclosuredescribes particular applications, this disclosure contemplates anysuitable applications. Moreover, although this disclosure describesparticular types of content, this disclosure contemplates any suitabletypes of content.

FIG. 4 illustrates example advertisements for applications. Inparticular embodiments, the social-networking system may identify one ormore concept nodes associated with an application, identify friends of auser that have used that application, and then generate an advertisementfor the application directed to the user that references the conceptnodes and/or the friends of the user. As an example and not by way oflimitation, the social-networking system may generate an advertisement410 for the music application “SPOTIFY.” The advertisement 410references the song “Only Wanna Be With You,” and indicates that 5 ofthe user's friends have listened to the song using the “SPOTIFY” app.The advertisement 410 also includes thumbnail profile pictures of the 5friends of the user that have used the “SPOTIFY” app to listen to “OnlyWanna Be With You.” Thus, this advertisement for “SPOTIFY” has beencustomized for the user by referencing the user's friends that have usedthe “SPOTIFY” application and by referencing the content they accessedwith the application. As another example any not by way of limitation,the social-networking system may generate an advertisement 420 for therecipe application “All About Recipes.” The advertisement 420 referencesthe recipe for “Chicken Parmesan” and indicates that 3 of the user'sfriends have used the recipe (i.e., “cooked Chicken Parmesan”) that theyaccessed with the “All About Recipes” application. The advertisement 420also includes thumbnail profile pictures of the 3 friends of the userthat have used the “All About Recipes” application to cook “ChickenParmesan.” Thus, this advertisement for “All About Recipes” has beencustomized for the user by referencing the user's friends that have usedthe “All About Recipes” application and by referencing the content theyaccessed with the application. Although this disclosure describes andillustrates in FIG. 4 particular types of advertisements, thisdisclosure contemplates any suitable types of advertisements. Moreover,although this disclosure describes and illustrates in FIG. 4advertisements with particular content, this disclosure contemplatesadvertisements with any suitable content.

In particular embodiments, the social-networking system may then analyzethe concept nodes in the social graph 200 to identify one or moreconcept nodes associated with an application that are connected to oneor more user nodes corresponding to friends of a first user. In otherwords, in order to make a socially relevant advertisement for aparticular application directed at a particular user, thesocial-networking system may identify a concept that is connected toboth the application and the friends of the first user. In particularembodiments, the social-networking system may first identify aparticular concept node that is associated with a particularapplication. The social-networking system may also analyze the numberand type of edges connected to each concept node. As an example and notby way of limitation, the social-networking system may identify thenumber of “friend” edges, “used” edges, “check in” edges, “like” edges,or other suitable types of edges connected to a particular concept node.The social-networking system may then identify a first set of edgescomprising all the edges connected to the concept node. Out of thisfirst set of edges, the social-networking system may then identify asecond set of edges comprising the edges that are connected to usernodes corresponding to friends of a first user. The identify edges maythen be references when subsequently selecting concept nodes to bereferenced in advertisements directed to the first user. As an exampleand not by way of limitation, referencing FIG. 2, if thesocial-networking system were generating an advertisement for the“SPOTIFY” application directed at User “B,” the social-networking systemmay first identify friends of User “B” who have used the application. Inthis case, User “C” has used the “SPOTIFY” application. Thesocial-networking system may then identify any concepts associated withthe application that are also connected to User “C.” In this case, thesong “Imagine” is associated with the “SPOTIFY” application (i.e., ithas been “played” by the app) and is connected to User “C” (i.e., he has“listened” to the song). The social-networking system may then selectthe “Imagine” concept and generate an advertisement direct to User “B”for the “SPOTIFY” application that includes information that User “C”has listened to the song “Imagine” on “SPOTIFY.” This advertisementshould be socially relevant to User “B,” since User “C” is afirst-degree friend of User “B.” Although this disclosure describesidentifying particular concept nodes in a particular manner, thisdisclosure contemplates identifying any suitable concept any suitablemanner.

In particular embodiments, the social-networking system may select aconcept node based on the social relevancy of the concept node to afirst user. A concept node that is directly connected to a first user,or connected to friends of the first user, may be considered sociallyrelevant to the first user. A concept node that is connected to a moredistant friend of the first user (e.g., 2nd-degree friends, 3rd-degreefriends, and so on) may be considered less socially relevant to thefirst user. Finally, a concept node that is not connected to the firstuser node by any path in the social graph may be considered minimally ornot socially relevant to the first user. In particular embodiments, thesocial-networking system may identify a set of edges between a conceptnode and user nodes corresponding to friends of a first user node andthen select the concept node based on the set of edges. Concept nodesthat are directly connected to the user nodes corresponding to friendsof the first user may be considered more relevant than concept nodesthat are not connected to user nodes corresponding to friend of thefirst user. As an example and not by way of limitation, referencing FIG.2, if User “C” is using the application “SPOTIFY,” the concept node for“SPOTIFY” may be considered socially relevant to User “B” because theuser node for User “B” is connected to the user node for User “C.” Asanother example and not by way of limitation, when generating anadvertisement directed to User “B,” the social-networking system maydetermine that the concept nodes for the app “SPOTIFY” and the song“Imagine” may be considered socially relevant to User “B” because theseare connected by “used” and “listened” edges, respectively, to User “C,”who is a friend of User “B.” Similarly, the concept nodes for “SPOTIFY”and the song “Imagine” may be considered less socially relevant to User“A” because the concept nodes corresponding to “SPOTIFY” and “Imagine”are three-degrees of separation from the user node for User “A.” Asanother example and not by way of limitation, the concept node for theapp “Online Poker” may be considered minimally or not socially relevantto User “B” because the concept node corresponding to that app is notconnected to User “B” by any path in the social graph 200. As yetanother example and not by way of limitation, referencing FIG. 2, if thesocial-networking system is generating an advertisement directed to User“A” for the app “All About Recipes,” the content node for the recipe“Chicken Parmesan” may be considered socially relevant to User “A.” Inthis case, the social-networking system may select the “ChickenParmesan” concept node to be referenced in the advertisement about the“All About Recipes” app it generates for User “A” because the “ChickenParmesan” concept node is considered socially relevant to User “A.”Although this disclosure describes selecting concept nodes based onsocial relevancy in a particular manner, this disclosure contemplatesselecting concept nodes based on social relevancy in any suitablemanner.

In particular embodiments, the social-networking system may select aconcept node based information associated with the edges between theconcept node and one or more user nodes corresponding to friends of afirst user. The information associated with the edges may be the numberof edges, the type of edge, or the attributes of the edges that connecta user node to a concept node. A concept node connected by edges to morefriends of the first user (i.e., a concept node with more edgesconnecting the concept node to user nodes corresponding to friends ofthe first user) may be considered more relevant than concept nodes withfewer edges. As an example and not by way of limitation, if a firstconcept node has 5 edges connecting it to user nodes corresponding tofriends of a first user and a second concept node has 10 edgesconnecting it to user nodes corresponding to friends of the first user,then the second concept node may be considered more relevant to thefirst user because more of the first user's friends are connected to itby edges. In this case, the second concept node may be selected by thesocial-networking system because it is more socially relevant to thefirst user. In particular embodiments, the social-networking system mayselect the concept node with the most edge connections from a set ofconcept nodes. That is, the social-networking system may determine thatthe concept node that is most socially relevant to a first user is theconcept node with the most edges connecting is to user nodes, such asthe user nodes corresponding to friends of the first user. As an exampleand not by way of limitation, the social-networking may identify a firstconcept node from a first set of concept nodes, where the first conceptnode has the most edges connecting it to one of more second user nodes.The second user nodes may be user nodes that are within a thresholddegree of separation of a first user node. Thus, the social-networkingsystem identifies the concept node that the most of the first user'sfriends are connected to. If two concept nodes both have the same numberof edges connecting to them, then the social-networking system mayselect both concept nodes, or may look at other factors (such as, forexample, the type of edges, or the attributes of the edges) to determinewhich concept node to select. In particular embodiments, thesocial-networking system may select a concept node based on the types ofedges connecting the concept node to a user's friends. Edges ofparticular types may be considered more relevant than other types ofedges. As an example and not by way of limitation, for a concept nodeassociated with the concept “SPOTIFY,” the social-networking system mayconsider “like” edges to be more relevant than “used” edges. Similarly,while counting a number of edges between a concept node and user nodesthat are friends of a first user, the social-networking system maydetermine that two “like” edges is more relevant than three “used”edges. In particular embodiments, the social-networking system may onlyselect concept nodes that are connected to user nodes that are within athreshold degree of separation of a first user node in the social graph200. As an example and not by way of limitation, when generating anadvertisement directed towards User “A,” if the threshold degree ofseparation is one degree, the social-networking system may determinethat the concept node corresponding to the location “Macy's” is relevantbecause it is connected to user nodes of first-degree friends of User“A,” while the concept node corresponding to the application “SPOTIFY”may not be considered relevant because it is indirectly connected toUser “A” by a second-degree friend, User “C.” Although this disclosuredescribes selecting concept nodes based on information associated withthe edges in a particular manner, this disclosure contemplates selectingconcept nodes based on information associated with the edges in anysuitable manner.

In particular embodiments, the social-networking system may select aconcept node based on advertising sponsorship associated with theconcept node. An advertiser (such as, for example, the owner orpropriety of a concept corresponding to a concept node) may sponsor aparticular concept node such that the concept node is considered moresocially relevant by the social networking system. If a first conceptnode and a second concept node are both considered equally sociallyrelevant to a first user, whichever node has advertising sponsorship maybe given an increased social relevance, thus allowing it to be selected.As an example and not by way of limitation, if the owner of the“SPOTIFY” application wants to promote the song “Imagine,” thissponsorship may be considered as a factor when selecting the conceptnode to be references in an advertisement. Although this disclosuredescribes selecting a concept node based on advertising sponsorship in aparticular manner, this disclosure contemplates selecting a concept nodebased on advertising sponsorship in any suitable manner.

In particular embodiments, the social-networking system may select aconcept node based on time stamps associated with the edges connected tothe concept node. Edges that were generated more recently may beconsidered more socially relevant when selecting concept nodes thanedges that were generated in the past. As an example and not by way oflimitation, the social-networking system may determine that edgescreated in the past week are the most socially relevant, while edgescreated in the past month are less socially relevant, and edges createdmore than a month ago are not considered socially relevant. Althoughthis disclosure describes selecting a concept node based on time stampsassociated with edges in a particular manner, this disclosurecontemplates selecting a concept node based on time stamps associatedwith edges in any suitable manner.

In particular embodiments, the social-networking system may select aconcept node based on traffic data of the concept node's correspondingwebpage. As an example and not by way of limitation, thesocial-networking system may detect a visit to a concept node'scorresponding webpage, such as the webpages illustrated in FIG. 3A or3B, when the social-networking system receives a request to serve thecorresponding webpage. As an example and not by way of limitation, thesocial-networking system may detect a visit to a concept node'scorresponding webpage when the social-networking system receives arequest to serve content of a selectable icon incorporated in theconcept node's corresponding webpage. The social-networking system mayaccumulate and store in one or more of data stores 101 a number ofvisits to a webpage corresponding to a concept node. Thesocial-networking system may access one or more of data stores 101 for anumber of visits for each of the second concept nodes. In particularembodiments, the more that a webpage corresponding to a concept node hasbeen visited, the more socially relevant the concept will be considered.As an example and not by way of limitation, a first concept nodecorresponding to a first webpage that has been visited for over 10,000times may be considered more socially relevant than a second conceptnode corresponding to a second webpage that has only been visited 5,000times. In particular embodiments, the social-networking system mayselect a concept node based on traffic from friends of a user. As anexample and not by way of limitation, the social-networking system maydetect a visit to a concept node's corresponding webpage by one or moresecond users corresponding to one or more second user nodes,respectively, that are connected to a first user node. In particularembodiments, the more that a webpage corresponding to a concept node hasbeen visited by friends of a user, the more socially relevant theconcept will be considered to the user. Although this disclosuredescribes selecting a concept node based on traffic data in a particularmanner, this disclosure contemplates selecting a concept node based ontraffic data in any suitable manner.

In particular embodiments, the social-networking system may select aconcept node based on the edges connected to the concept node bydetermining a value for one or more concept nodes based on edgesconnected to the concept node, and then selecting one or more conceptnodes based on the determined values of the concept nodes. Thesocial-networking system may first identify the edges connecting aparticular concept node to user nodes corresponding to friends of afirst user and then determine a value for the concept node based on thenumber and types of identified edges connected to the concept node. Aparticular concept node may be connected to one or more other nodes byone or more edges, and each edge may have particular attributes. Thesocial-networking system may then select particular concept nodes basedon the determined values, and then the selected concept nodes may bereferences in any advertisements generated by the social-networkingsystem. The determined value for a concept node may be based on avariety of factors, such as, for example, the number of edges connectedto the concept node, the type of edges connected to the concept node,whether the concept node and the first user are connected by an edge,whether the concept node and user nodes of friends of the first user (oruser nodes within a threshold degree of separation of the first user)are connected by edges, when the edges connected to the concept nodewere created, other suitable information, or any combination of suchinformation. The determined value may be any suitable value on anysuitable scale. For illustration purposes, this disclosure discussesvalues in generic “unit” terms (e.g., 1.0 units, 2.4 units, etc.), thisdisclosure contemplates values with any suitable type of units.Moreover, for illustration purposes, this disclosure discusses valuesfor concept nodes such that larger values are considered more relevant,such as, for example, when selecting concept nodes for use in anadvertisement. In particular embodiments, the social-networking maydetermine a value for a concept node based on the number of edgesconnected to the concept node. Concept nodes may be connected to othernodes by one or more edges, and the number of edges connected to aconcept node may be considered when determining a value for the conceptnode. That is, the social-networking system may determine a value for aconcept node based on a level of engagement by users, as measured by anumber of edges (i.e., actions) between the concept node and user nodes.Concept nodes with more edges may be given a greater value. As anexample and not by way of limitation, a concept node with 50 edges maybe given a value of 5.0 units, while a concept node with 30 edges may begiven a value of 2.4 units. As another example and not by way oflimitation, the social-networking system may assign a score of 1.0 unitsto a concept node if the concept node has more than 100 edges connectingto user nodes, a score of 0.7 units if the concept node has more than 50edges connecting to user nodes, or a score of 0.5 units if the conceptnode has 50 edges or less connecting to user nodes. In particularembodiments, the social-networking system may determine a value for aconcept node based on the attributes of the edges connected to theconcept node. As discussed above, edges may have various attributes, andedges with particular attributes may be given more value than othertypes of edges. The social-networking system may identify the edgesconnected to a particular concept node and the attributes of those edgesand then determine a value based on the attributes of the edges. As anexample and not by way of limitation, for a concept node associated withthe app “SPOTIFY,” the social-networking system may give more weightingto edges of “like” than edges of “used.” While counting a number ofedges between a concept node and user nodes, the social-networkingsystem may determine a value for a “like” edge as 1.5 units, whiledetermining a value for a “used” edge as 0.5 units. Although thisdisclosure describes determine values for a concept node based on edgeinformation in a particular manner, this disclosure contemplatesdetermining values for a concept nodes based on edge information in anysuitable manner. Although this disclosure describes determining valuesfor particular concept nodes, this disclosure contemplates determiningvalues for any suitable concept node. Moreover, although this disclosuredescribes determining particular values for concept nodes, thisdisclosure contemplates determining any suitable values for conceptnodes. Furthermore, although this disclosure describes determining avalue for a concept node based on edge connections in a particularmanner, this disclosure contemplates determining a value for a conceptnode based on edge connections in any suitable manner.

In particular embodiments, the social-networking system may determine avalue for a concept node based on one or more factors, as describedabove, including social-graph information, user information, conceptinformation, etc. These determined values may be cumulative with eachother. The determined value for each factor may be additive,multiplicative, etc., with determined values for other factors. As anexample and not by way of limitation, a social-networking system maygive a value of 1.0 to a concept node having 10 or more edges connectedto it, and may give a value of 0.8 to a concept node corresponding toconcept that has recently been accessed by a friend of the user. Thus, aconcept node that has been recently accessed and has 10 or more edgesmay be given a value of 1.8. In particular embodiments, valuesdetermined based on particular factors may be weighted differently.Using the previous example, a concept node with 10 or more edges thathas recently been accessed may be given a value of a*(1.0)+b*(0.8),where a and b are weightings that may be assigned to the particularfactors. Although this disclosure describes determining discrete valuesfor concept nodes based on particular factors, this disclosurecontemplates determining non-discrete values for concept node based on avariety of factors.

In particular embodiments, the social-networking system may generate anadvertisement for an application comprising information representing oneor more concepts corresponding to one or more concept nodes that havebeen selected by the social-networking system. The advertisement may bea structured document. The advertisement may include a title, an image,ad copy, a display URL, a destination URL, or any combination thereof.In particular embodiments, the advertisement may include informationassociated with the content corresponding to the selected concept nodes.Information of particular concept nodes presented to the first user maycomprise one or more images and websites associated with the particularconcept nodes. As an example and not by way of limitation, theadvertisement 410 for the “SPOTIFY” application includes ad copydescribing the song “Only Wanna Be With You,” which is contentassociated with the app. As another example and not by way oflimitation, the advertisement 420 for the “All About Recipes”application includes ad copy describing the recipe “Chicken Parmesan,”which is content associated with the app. In particular embodiments, theadvertisement may be based on user information corresponding to one ormore user nodes that are connected to the selected concept nodes. As anexample and not by way of limitation, the advertisement directed towardsa first user may comprise user profile pictures and names of the firstuser's social contacts (i.e., user nodes within a threshold degree ofseparation) whose corresponding user nodes having one or more edgesconnected to one or more of the concept nodes. It may also include howmany times those social contacts have accessed the selected conceptnode, when they accessed it, how they are connected to the concept node(i.e., via a “like” edge, a “used” edge, etc.), or other suitableinformation associated with the user. In particular embodiments, thesocial-networking system may transmit to the first user the generatedadvertisement or information associated with the advertisement. Theadvertisement may be displayed directly or indirectly. The advertisementmay be transmitted as an email, as an image, as a webpage, as a portionof a webpage, or in another suitable manner. Although this disclosuredescribes generating advertisements in a particular manner, thisdisclosure contemplates generating advertisements in any suitablemanner.

FIG. 5 illustrates an example method 500 for implementing particularembodiments. The method begins at step 510, where the social-networkingsystem accesses a social graph comprising a plurality of nodes and aplurality of edges connecting the nodes. The plurality of nodes maycomprise a first user node corresponding to a first user of an onlinesocial network and a plurality of second user nodes corresponding to aplurality of second users of the online social network, respectively. Inparticular embodiments, the second user nodes may be within a thresholddegree of separation (such as, for example, one, two, three, or all) ofthe first user node. The plurality of nodes may also comprise one ormore concept nodes corresponding to one or more concepts, respectively,wherein each concept node is connected to one or more user nodes by oneor more edges. At step 520, the social-networking system may identify afirst set of concept nodes that are connected to one or more of thesecond user nodes by one or more edges. Each of the concept nodes in thefirst set of concept nodes may be associated with an applicationaccessible by users associated with the online social network. At step530, the social-networking system may select a second set of conceptnodes from the first set of concept nodes based on edges connected tothe concept nodes. At step 540, the social-networking system maygenerate an advertisement for the application. The advertisement mayinclude information representing one or more concepts corresponding toone or more concept nodes, respectively, in the second set of conceptnodes. Although this disclosure describes and illustrates particularsteps of the method of FIG. 5 as occurring in a particular order, thisdisclosure contemplates any suitable steps of the method of FIG. 5occurring in any suitable order. Moreover, although this disclosuredescribes and illustrates particular components carrying out particularsteps of the method of FIG. 5, this disclosure contemplates any suitablecombination of any suitable components carrying out any suitable stepsof the method of FIG. 5.

FIG. 6 illustrates an example computer system 600. In particularembodiments, one or more computer systems 600 perform one or more stepsof one or more methods described or illustrated herein. In particularembodiments, one or more computer systems 600 provide functionalitydescribed or illustrated herein. In particular embodiments, softwarerunning on one or more computer systems 600 performs one or more stepsof one or more methods described or illustrated herein or providesfunctionality described or illustrated herein. Particular embodimentsinclude one or more portions of one or more computer systems 600.

This disclosure contemplates any suitable number of computer systems600. This disclosure contemplates computer system 600 taking anysuitable physical form. As example and not by way of limitation,computer system 600 may be an embedded computer system, a system-on-chip(SOC), a single-board computer system (SBC) (such as, for example, acomputer-on-module (COM) or system-on-module (SOM)), a desktop computersystem, a laptop or notebook computer system, an interactive kiosk, amainframe, a mesh of computer systems, a mobile telephone, a personaldigital assistant (PDA), a server, a tablet computer system, or acombination of two or more of these. Where appropriate, computer system600 may include one or more computer systems 600; be unitary ordistributed; span multiple locations; span multiple machines; spanmultiple data centers; or reside in a cloud, which may include one ormore cloud components in one or more networks. Where appropriate, one ormore computer systems 600 may perform without substantial spatial ortemporal limitation one or more steps of one or more methods describedor illustrated herein. As an example and not by way of limitation, oneor more computer systems 600 may perform in real time or in batch modeone or more steps of one or more methods described or illustratedherein. One or more computer systems 600 may perform at different timesor at different locations one or more steps of one or more methodsdescribed or illustrated herein, where appropriate.

In particular embodiments, computer system 600 includes a processor 602,memory 604, storage 606, an input/output (I/O) interface 608, acommunication interface 610, and a bus 612. Although this disclosuredescribes and illustrates a particular computer system having aparticular number of particular components in a particular arrangement,this disclosure contemplates any suitable computer system having anysuitable number of any suitable components in any suitable arrangement.

In particular embodiments, processor 602 includes hardware for executinginstructions, such as those making up a computer program. As an exampleand not by way of limitation, to execute instructions, processor 602 mayretrieve (or fetch) the instructions from an internal register, aninternal cache, memory 604, or storage 606; decode and execute them; andthen write one or more results to an internal register, an internalcache, memory 604, or storage 606. In particular embodiments, processor602 may include one or more internal caches for data, instructions, oraddresses. This disclosure contemplates processor 602 including anysuitable number of any suitable internal caches, where appropriate. Asan example and not by way of limitation, processor 602 may include oneor more instruction caches, one or more data caches, and one or moretranslation lookaside buffers (TLBs). Instructions in the instructioncaches may be copies of instructions in memory 604 or storage 606, andthe instruction caches may speed up retrieval of those instructions byprocessor 602. Data in the data caches may be copies of data in memory604 or storage 606 for instructions executing at processor 602 tooperate on; the results of previous instructions executed at processor602 for access by subsequent instructions executing at processor 602 orfor writing to memory 604 or storage 606; or other suitable data. Thedata caches may speed up read or write operations by processor 602. TheTLBs may speed up virtual-address translation for processor 602. Inparticular embodiments, processor 602 may include one or more internalregisters for data, instructions, or addresses. This disclosurecontemplates processor 602 including any suitable number of any suitableinternal registers, where appropriate. Where appropriate, processor 602may include one or more arithmetic logic units (ALUs); be a multi-coreprocessor; or include one or more processors 602. Although thisdisclosure describes and illustrates a particular processor, thisdisclosure contemplates any suitable processor.

In particular embodiments, memory 604 includes main memory for storinginstructions for processor 602 to execute or data for processor 602 tooperate on. As an example and not by way of limitation, computer system600 may load instructions from storage 606 or another source (such as,for example, another computer system 600) to memory 604. Processor 602may then load the instructions from memory 604 to an internal registeror internal cache. To execute the instructions, processor 602 mayretrieve the instructions from the internal register or internal cacheand decode them. During or after execution of the instructions,processor 602 may write one or more results (which may be intermediateor final results) to the internal register or internal cache. Processor602 may then write one or more of those results to memory 604. Inparticular embodiments, processor 602 executes only instructions in oneor more internal registers or internal caches or in memory 604 (asopposed to storage 606 or elsewhere) and operates only on data in one ormore internal registers or internal caches or in memory 604 (as opposedto storage 606 or elsewhere). One or more memory buses (which may eachinclude an address bus and a data bus) may couple processor 602 tomemory 604. Bus 612 may include one or more memory buses, as describedbelow. In particular embodiments, one or more memory management units(MMUs) reside between processor 602 and memory 604 and facilitateaccesses to memory 604 requested by processor 602. In particularembodiments, memory 604 includes random access memory (RAM). This RAMmay be volatile memory, where appropriate Where appropriate, this RAMmay be dynamic RAM (DRAM) or static RAM (SRAM). Moreover, whereappropriate, this RAM may be single-ported or multi-ported RAM. Thisdisclosure contemplates any suitable RAM. Memory 604 may include one ormore memories 604, where appropriate. Although this disclosure describesand illustrates particular memory, this disclosure contemplates anysuitable memory.

In particular embodiments, storage 606 includes mass storage for data orinstructions. As an example and not by way of limitation, storage 606may include a hard disk drive (HDD), a floppy disk drive, flash memory,an optical disc, a magneto-optical disc, magnetic tape, or a UniversalSerial Bus (USB) drive or a combination of two or more of these. Storage606 may include removable or non-removable (or fixed) media, whereappropriate. Storage 606 may be internal or external to computer system600, where appropriate. In particular embodiments, storage 606 isnon-volatile, solid-state memory. In particular embodiments, storage 606includes read-only memory (ROM). Where appropriate, this ROM may bemask-programmed ROM, programmable ROM (PROM), erasable PROM (EPROM),electrically erasable PROM (EEPROM), electrically alterable ROM (EAROM),or flash memory or a combination of two or more of these. Thisdisclosure contemplates mass storage 606 taking any suitable physicalform. Storage 606 may include one or more storage control unitsfacilitating communication between processor 602 and storage 606, whereappropriate. Where appropriate, storage 606 may include one or morestorages 606. Although this disclosure describes and illustratesparticular storage, this disclosure contemplates any suitable storage.

In particular embodiments, I/O interface 608 includes hardware,software, or both providing one or more interfaces for communicationbetween computer system 600 and one or more I/O devices. Computer system600 may include one or more of these I/O devices, where appropriate. Oneor more of these I/O devices may enable communication between a personand computer system 600. As an example and not by way of limitation, anI/O device may include a keyboard, keypad, microphone, monitor, mouse,printer, scanner, speaker, still camera, stylus, tablet, touch screen,trackball, video camera, another suitable I/O device or a combination oftwo or more of these. An I/O device may include one or more sensors.This disclosure contemplates any suitable I/O devices and any suitableI/O interfaces 608 for them. Where appropriate, I/O interface 608 mayinclude one or more device or software drivers enabling processor 602 todrive one or more of these I/O devices. I/O interface 608 may includeone or more I/O interfaces 608, where appropriate. Although thisdisclosure describes and illustrates a particular I/O interface, thisdisclosure contemplates any suitable I/O interface.

In particular embodiments, communication interface 610 includeshardware, software, or both providing one or more interfaces forcommunication (such as, for example, packet-based communication) betweencomputer system 600 and one or more other computer systems 600 or one ormore networks. As an example and not by way of limitation, communicationinterface 610 may include a network interface controller (NIC) ornetwork adapter for communicating with an Ethernet or other wire-basednetwork or a wireless NIC (WNIC) or wireless adapter for communicatingwith a wireless network, such as a WI-FI network. This disclosurecontemplates any suitable network and any suitable communicationinterface 610 for it. As an example and not by way of limitation,computer system 600 may communicate with an ad hoc network, a personalarea network (PAN), a local area network (LAN), a wide area network(WAN), a metropolitan area network (MAN), or one or more portions of theInternet or a combination of two or more of these. One or more portionsof one or more of these networks may be wired or wireless. As anexample, computer system 600 may communicate with a wireless PAN (WPAN)(such as, for example, a BLUETOOTH WPAN), a WI-FI network, a WI-MAXnetwork, a cellular telephone network (such as, for example, a GlobalSystem for Mobile Communications (GSM) network), or other suitablewireless network or a combination of two or more of these. Computersystem 600 may include any suitable communication interface 610 for anyof these networks, where appropriate. Communication interface 610 mayinclude one or more communication interfaces 610, where appropriate.Although this disclosure describes and illustrates a particularcommunication interface, this disclosure contemplates any suitablecommunication interface.

In particular embodiments, bus 612 includes hardware, software, or bothcoupling components of computer system 600 to each other. As an exampleand not by way of limitation, bus 612 may include an AcceleratedGraphics Port (AGP) or other graphics bus, an Enhanced Industry StandardArchitecture (EISA) bus, a front-side bus (FSB), a HYPERTRANSPORT (HT)interconnect, an Industry Standard Architecture (ISA) bus, an INFINIBANDinterconnect, a low-pin-count (LPC) bus, a memory bus, a Micro ChannelArchitecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, aPCI-Express (PCIe) bus, a serial advanced technology attachment (SATA)bus, a Video Electronics Standards Association local (VLB) bus, oranother suitable bus or a combination of two or more of these. Bus 612may include one or more buses 612, where appropriate. Although thisdisclosure describes and illustrates a particular bus, this disclosurecontemplates any suitable bus or interconnect.

Herein, reference to a computer-readable non-transitory storage mediummay include a semiconductor-based or other integrated circuit (IC) (suchas, for example, a field-programmable gate array (FPGA) or anapplication-specific IC (ASIC)), a hard disk drive (HDD), a hybrid harddrive (HHD), an optical disc, an optical disc drive (ODD), amagneto-optical disc, a magneto-optical drive, a floppy disk, a floppydisk drive (FDD), magnetic tape, a holographic storage medium, asolid-state drive (SSD), a RAM-drive, a SECURE DIGITAL card, a SECUREDIGITAL drive, another suitable computer-readable non-transitory storagemedium, or a suitable combination of these, where appropriate. Acomputer-readable non-transitory storage medium may be volatile,non-volatile, or a combination of volatile and non-volatile, whereappropriate.

This disclosure contemplates one or more computer-readable storage mediaimplementing any suitable storage. In particular embodiments, acomputer-readable storage medium implements one or more portions ofprocessor 602 (such as, for example, one or more internal registers orcaches), one or more portions of memory 604, one or more portions ofstorage 606, or a combination of these, where appropriate. In particularembodiments, a computer-readable storage medium implements RAM or ROM.In particular embodiments, a computer-readable storage medium implementsvolatile or persistent memory. In particular embodiments, one or morecomputer-readable storage media embody software. Herein, reference tosoftware may encompass one or more applications, bytecode, one or morecomputer programs, one or more executables, one or more instructions,logic, machine code, one or more scripts, or source code, and viceversa, where appropriate. In particular embodiments, software includesone or more application programming interfaces (APIs). This disclosurecontemplates any suitable software written or otherwise expressed in anysuitable programming language or combination of programming languages.In particular embodiments, software is expressed as source code orobject code. In particular embodiments, software is expressed in ahigher-level programming language, such as, for example, C, Perl, or asuitable extension thereof. In particular embodiments, software isexpressed in a lower-level programming language, such as assemblylanguage (or machine code). In particular embodiments, software isexpressed in JAVA. In particular embodiments, software is expressed inHyper Text Markup Language (HTML), Extensible Markup Language (XML), orother suitable markup language.

FIG. 7 illustrates an example network environment 700. This disclosurecontemplates any suitable network environment 700. As an example and notby way of limitation, although this disclosure describes and illustratesa network environment 700 that implements a client-server model, thisdisclosure contemplates one or more portions of a network environment700 being peer-to-peer, where appropriate. Particular embodiments mayoperate in whole or in part in one or more network environments 700. Inparticular embodiments, one or more elements of network environment 700provide functionality described or illustrated herein. Particularembodiments include one or more portions of network environment 700.Network environment 700 includes a network 710 coupling one or moreservers 720 and one or more clients 730 to each other. This disclosurecontemplates any suitable network 710. As an example and not by way oflimitation, one or more portions of network 710 may include an ad hocnetwork, an intranet, an extranet, a virtual private network (VPN), alocal area network (LAN), a wireless LAN (WLAN), a wide area network(WAN), a wireless WAN (WWAN), a metropolitan area network (MAN), aportion of the Internet, a portion of the Public Switched TelephoneNetwork (PSTN), a cellular telephone network, or a combination of two ormore of these. Network 710 may include one or more networks 710.

Links 750 couple servers 720 and clients 730 to network 710 or to eachother. This disclosure contemplates any suitable links 750. As anexample and not by way of limitation, one or more links 750 each includeone or more wireline (such as, for example, Digital Subscriber Line(DSL) or Data Over Cable Service Interface Specification (DOCSIS)),wireless (such as, for example, Wi-Fi or Worldwide Interoperability forMicrowave Access (WiMAX)) or optical (such as, for example, SynchronousOptical Network (SONET) or Synchronous Digital Hierarchy (SDH)) links750. In particular embodiments, one or more links 750 each includes anintranet, an extranet, a VPN, a LAN, a WLAN, a WAN, a MAN, acommunications network, a satellite network, a portion of the Internet,or another link 750 or a combination of two or more such links 750.Links 750 need not necessarily be the same throughout networkenvironment 700. One or more first links 750 may differ in one or morerespects from one or more second links 750.

This disclosure contemplates any suitable servers 720. As an example andnot by way of limitation, one or more servers 720 may each include oneor more advertising servers, applications servers, catalog servers,communications servers, database servers, exchange servers, fax servers,file servers, game servers, home servers, mail servers, message servers,news servers, name or DNS servers, print servers, proxy servers, soundservers, standalone servers, web servers, or web-feed servers. Inparticular embodiments, a server 720 includes hardware, software, orboth for providing the functionality of server 720. As an example andnot by way of limitation, a server 720 that operates as a web server maybe capable of hosting websites containing web pages or elements of webpages and include appropriate hardware, software, or both for doing so.In particular embodiments, a web server may host HTML or other suitablefiles or dynamically create or constitute files for web pages onrequest. In response to a Hyper Text Transfer Protocol (HTTP) or otherrequest from a client 730, the web server may communicate one or moresuch files to client 730. As another example, a server 720 that operatesas a mail server may be capable of providing e-mail services to one ormore clients 730. As another example, a server 720 that operates as adatabase server may be capable of providing an interface for interactingwith one or more data stores (such as, for example, data stores 740described below). Where appropriate, a server 720 may include one ormore servers 720; be unitary or distributed; span multiple locations;span multiple machines; span multiple datacenters; or reside in a cloud,which may include one or more cloud components in one or more networks.

In particular embodiments, one or more links 750 may couple a server 720to one or more data stores 740. A data store 740 may store any suitableinformation, and the contents of a data store 740 may be organized inany suitable manner. As an example and not by way or limitation, thecontents of a data store 740 may be stored as a dimensional, flat,hierarchical, network, object-oriented, relational, XML, or othersuitable database or a combination or two or more of these. A data store740 (or a server 720 coupled to it) may include a database-managementsystem or other hardware or software for managing the contents of datastore 740. The database-management system may perform read and writeoperations, delete or erase data, perform data deduplication, query orsearch the contents of data store 740, or provide other access to datastore 740.

In particular embodiments, one or more servers 720 may each include oneor more search engines 722. A search engine 722 may include hardware,software, or both for providing the functionality of search engine 722.As an example and not by way of limitation, a search engine 722 mayimplement one or more search algorithms to identify network resources inresponse to search queries received at search engine 722, one or moreranking algorithms to rank identified network resources, or one or moresummarization algorithms to summarize identified network resources. Inparticular embodiments, a ranking algorithm implemented by a searchengine 722 may use a machine-learned ranking formula, which the rankingalgorithm may obtain automatically from a set of training dataconstructed from pairs of search queries and selected Uniform ResourceLocators (URLs), where appropriate.

In particular embodiments, one or more servers 720 may each include oneor more data monitors/collectors 724. A data monitor/collection 724 mayinclude hardware, software, or both for providing the functionality ofdata collector/collector 724. As an example and not by way oflimitation, a data monitor/collector 724 at a server 720 may monitor andcollect network-traffic data at server 720 and store the network-trafficdata in one or more data stores 740. In particular embodiments, server720 or another device may extract pairs of search queries and selectedURLs from the network-traffic data, where appropriate.

This disclosure contemplates any suitable clients 730. A client 730 mayenable a user at client 730 to access or otherwise communicate withnetwork 710, servers 720, or other clients 730. As an example and not byway of limitation, a client 730 may have a web browser, such asMICROSOFT INTERNET EXPLORER or MOZILLA FIREFOX, and may have one or moreadd-ons, plug-ins, or other extensions, such as GOOGLE TOOLBAR or YAHOOTOOLBAR. A client 730 may be an electronic device including hardware,software, or both for providing the functionality of client 730. As anexample and not by way of limitation, a client 730 may, whereappropriate, be an embedded computer system, an SOC, an SBC (such as,for example, a COM or SOM), a desktop computer system, a laptop ornotebook computer system, an interactive kiosk, a mainframe, a mesh ofcomputer systems, a mobile telephone, a PDA, a netbook computer system,a server, a tablet computer system, or a combination of two or more ofthese. Where appropriate, a client 730 may include one or more clients730; be unitary or distributed; span multiple locations; span multiplemachines; span multiple datacenters; or reside in a cloud, which mayinclude one or more cloud components in one or more networks.

Herein, “or” is inclusive and not exclusive, unless expressly indicatedotherwise or indicated otherwise by context. Therefore, herein, “A or B”means “A, B, or both,” unless expressly indicated otherwise or indicatedotherwise by context. Moreover, “and” is both joint and several, unlessexpressly indicated otherwise or indicated otherwise by context.Therefore, herein, “A and B” means “A and B, jointly or severally,”unless expressly indicated otherwise or indicated otherwise by context.Furthermore, “a”, “an,” or “the” is intended to mean “one or more,”unless expressly indicated otherwise or indicated otherwise by context.Therefore, herein, “an A” or “the A” means “one or more A,” unlessexpressly indicated otherwise or indicated otherwise by context.

This disclosure encompasses all changes, substitutions, variations,alterations, and modifications to the example embodiments herein that aperson having ordinary skill in the art would comprehend. Similarly,where appropriate, the appended claims encompass all changes,substitutions, variations, alterations, and modifications to the exampleembodiments herein that a person having ordinary skill in the art wouldcomprehend. Moreover, this disclosure encompasses any suitablecombination of one or more features from any example embodiment with oneor more features of any other example embodiment herein that a personhaving ordinary skill in the art would comprehend. Furthermore,reference in the appended claims to an apparatus or system or acomponent of an apparatus or system being adapted to, arranged to,capable of, configured to, enabled to, operable to, or operative toperform a particular function encompasses that apparatus, system,component, whether or not it or that particular function is activated,turned on, or unlocked, as long as that apparatus, system, or componentis so adapted, arranged, capable, configured, enabled, operable, oroperative.

What is claimed is:
 1. A method comprising: receiving, from a clientdevice of a first user of an online social network, a request to accessa resource of the online social network; generating an advertisement ofa third-party application based on a social relevance of the third-partyapplication to the first user, wherein the social relevance of thethird-party application is based on social-graph information associatedwith the first user and a first set of multimedia objects associatedwith the third-party application, wherein each multimedia object in thefirst set of multimedia objects has been interacted with by a friend ofthe first user; and sending the advertisement of the third-partyapplication to the client device of the first user for display, whereinthe advertisement contains a reference to at least one multimedia objectin the first set of multimedia objects.
 2. The method of claim 1,wherein the resource is a user interface of an application associatedwith the online social network.
 3. The method of claim 1, wherein theresource is a webpage of a social-networking system accessed by abrowser client.
 4. The method of claim 1, wherein the interactionassociated with the multimedia object comprises accessing, creating, ormanaging the multimedia object with the third-party application.
 5. Themethod of claim 1, further comprising: accessing a social graphcomprising a plurality of nodes and a plurality of edges connecting thenodes, wherein each edge between two nodes represents a single degree ofseparation between the two nodes, the plurality of nodes comprising: afirst user node corresponding to the first user; one or more second usernodes corresponding to one or more friends of the first user,respectively, wherein each of the second user nodes is within one degreeof separation from the first user node; and one or more concept nodescorresponding to one or more concepts, respectively.
 6. The method ofclaim 5, wherein the third-party application is associated with aconcept node that is connected to one or more of the second user nodesby one or more edges, respectively.
 7. The method of claim 6, furthercomprising analyzing the one or more edges associated with the conceptnode associated with the third-party application, wherein the analyzingis based on: identifying a first set of edges, wherein the first set ofedges are connected to the concept node associated with the third-partyapplication; and identifying a second set of edges from the first set ofedges, wherein the second set of edges correspond to one or more of thesecond users.
 8. The method of claim 5, wherein each multimedia objectin the first set of multimedia objects is associated with a concept nodethat is connected to one or more of the second user nodes by one or moreedges, respectively, and where each multimedia object in the first setof multimedia object has been accessed, created, or managed with thethird-party application by one or more of the second users.
 9. Themethod of claim 8, wherein the social relevance of the third-partyapplication to the first user is further based on a number of edgesconnected to the concept nodes, wherein for each concept node, each edgeconnected to the concept node indicates that one of the second usersaccessed, created, or managed the multimedia object corresponding to thecontent node with the application.
 10. The method of claim 9, whereinthe social relevance of the third-party application to the first user isfurther based on one or more multimedia objects corresponding to one ormore concept nodes, respectively, from the first set of concept nodesbased at least in part on the number of edges connected to the conceptnodes comprises: identifying, for each concept node of the first set ofconcept nodes, a first set of edges between the concept node and the oneor more second user nodes; determining, for each concept node of thefirst set of concept nodes, a value for the concept node based oninformation associated with the first set of edges; and selecting one ormore of the concept nodes of the first set of concept nodes based on thevalues for the concept nodes.
 11. The method of claim 10, wherein theinformation associated with the first set of edges is the number ofedges in the first set of edges, the type of edges in the first set ofedges, the attributes of the edges in the first set of edges, or anycombination thereof.
 12. The method of claim 5, wherein one or more ofthe one or more edges of the social graph connecting the one or moreconcept nodes to the one or more second user nodes corresponds to anaction associated with the third-party application.
 13. The method ofclaim 12, wherein the action associated with the third-party applicationcomprises accessing the multimedia object corresponding to the conceptnode with the third-party application, creating the multimedia objectcorresponding to the concept node with the third-party application,managing the multimedia object corresponding to the concept node withthe third-party application, or any combination thereof.
 14. The methodof claim 1, wherein the advertisement is based on user informationcorresponding one or more friends of the first user that have accessed,created, or managed one or more of the multimedia objects in the firstset of multimedia objects with the third-party application.
 15. Themethod of claim 1, wherein the advertisement comprises a structureddocument.
 16. The method of claim 1, wherein the advertisement comprisesa title, an image, ad copy, a display URL, a destination URL, or anycombination thereof.
 17. An apparatus comprising: one or moreprocessors; and a memory coupled to the processors comprisinginstructions executable by the processors, the processors operable whenexecuting the instructions to: receive, from a client device of a firstuser of an online social network, a request to access a resource of theonline social network; generate an advertisement of a third-partyapplication based on a social relevance of the third-party applicationto the first user, wherein the social relevance of the third-partyapplication is based on social-graph information associated with thefirst user and a first set of multimedia objects associated with thethird-party application, wherein each multimedia object in the first setof multimedia objects has been interacted with by a friend of the firstuser; and send the advertisement of the third-party application to theclient device of the first user for display, wherein the advertisementcontains a reference to at least one multimedia object in the first setof multimedia objects.
 18. One or more computer-readable non-transitorystorage media embodying software that is operable when executed to:receive, from a client device of a first user of an online socialnetwork, a request to access a resource of the online social network;generate an advertisement of a third-party application based on a socialrelevance of the third-party application to the first user, wherein thesocial relevance of the third-party application is based on social-graphinformation associated with the first user and a first set of multimediaobjects associated with the third-party application, wherein eachmultimedia object in the first set of multimedia objects has beeninteracted with by a friend of the first user; and send theadvertisement of the third-party application to the client device of thefirst user for display, wherein the advertisement contains a referenceto at least one multimedia object in the first set of multimediaobjects.